package com.yupi.yuojcodesandbox.security;

import cn.hutool.core.io.FileUtil;

import java.nio.charset.Charset;

public class TestSecurityManager {
    public static void main(String[] args) {
        System.setSecurityManager(new DefaultSecurityManager());

        // 限制 写权限
        FileUtil.writeString("aa","aa", Charset.defaultCharset());

    }

}
